home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
comm
/
ca29_3.zip
/
REMAP.DOC
< prev
next >
Wrap
Text File
|
1992-11-30
|
28KB
|
990 lines
COM-AND Remap Script
-------------------------------------------
COM-AND Remap Script
Script based compiler for COM-AND remapping
-------------------------------------------
COM-AND, and the REMAP script are copyright 1992 by CABER Soft-
ware. COM-AND is distributed freely and may be copied by anyone
for any number of machines, for purposes of evaluation. The
author offers COM-AND and its accessory programs as "shareware".
If you USE the program after evaluating it, you MUST pay for it.
The complete user license and registration information is to be
found in the file REGISTER.DOC. Limitations on redistribution
of COM-AND are set out in the file VENDOR.DOC. These two files
are included with the COM-AND program release.
CABER Software
R. (Scott) McGinnis
P.O. Box 3607 Mdse Mart
Chicago, IL 60654-0607
GEnie, Delphi: TARTAN
CIS .......... 73147,2665
Internet ..... 73147.2665@compuserve.com
Version 1.2: 921012
COM-AND Remap Script
Table of Contents
-----------------
I. Introduction .............................................. page 1
A. What is COM-AND ......................................... page 1
B. Terminal Emulation ...................................... page 1
C. The REMAP Script ........................................ page 1
II. Running REMAP.CMD .......................................... page 2
III. REMAP source files ......................................... page 3
A. Comments ................................................ page 3
B. Section names ........................................... page 3
C. Redefinitions ........................................... page 3
D. Remapped keys within redefinitions ...................... page 5
IV. DOORWAY Remaps ............................................. page 6
V. Program Requirements ....................................... page 7
VI. Program and Author Information ............................ page 8
Appendices
----------
A. File structures ............................................ page 9
B. Syntax ..................................................... page 10
C. Tokens ..................................................... page 11
D. Unusual Remaps ............................................. page 12
E. REMAPS.TXT (source file) ................................... page 13
Version 1.2: 921012
COM-AND Remap Script Page 1
I. Introduction
A. What is COM-AND?
COM-AND for the IBM PC and compatibles is a communications program
for use by itself, or for use with several integrated accessory
programs (which themselves may be used independently of COM-AND).
COM-AND provides standard comm program functions: a dialing
directory, macros, disk logging, binary and ASCII file transfers,
scripted execution and terminal emulation...
B. Terminal Emulation
COM-AND supports terminal emulation through 'display emulation',
'translation', and 'keyboard remapping' functions. These are
independent... VT100 display emulation may be combined with the
VT100 keyboard remap supplied, or the display emulation may be
combined with a different remap (one constructed to a different
set of preferences).
C. The REMAP script
The script REMAP.CMD is a compiler of sorts. It defines 'codes'
for each key COM-AND can detect (COM-AND doesn't detect all keys)
and a simple syntax for their redefinition. REMAP.CMD also
allows several redefinitions combined in one source file; each
set is given its own unique name.
This document discusses the function of the REMAP.CMD script,
and the syntax used in source files given to REMAP.CMD.
If all this seems overly complex, or if you have questions about
COM-AND's terminal emulation, feel free to write the author. I
am very interested in every reaction to COM-AND.
Version 1.2: 921012
COM-AND Remap Script Page 2
II. Running REMAP.CMD
The REMAP script is invoked through COM-AND's script processor (F2).
When invoked, REMAP opens a window offering a menu of choices. The
choices are:
1) Compile source into a new remap file (COM-AND.RMP)
Compilation of a source file produces a new COM-AND.RMP file
for use by COM-AND. The source file name is requested; when
the source file is opened it is scanned once for 'sections'.
If the source file contains one or more 'sections' (i.e. NAME
commands) the section names are listed in a new window, and
one must be selected.
When a source file contains no sections, or when a section has
been selected, a new window is opened and the compilation begins.
Lines of text are displayed within the new window as they are
processed. Press ESC to pause the compilation.
2) Syntax check a source file
REMAP allows a syntax check as well as compile. A syntax check
results in no change to the current COM-AND.RMP.
3) Search for files (Alt-F)
REMAP allows you to search for files using the Alt-F file
directory function of COM-AND.
4) Edit a file
REMAP allows you to invoke an editor on a source file (the syntax
for the invocation is assumed - you may wish to change it). When
you exit the editor, you are returned to COM-AND and REMAP.
5) Turn remap on (using current COM-AND.RMP map file)
6) Turn remap off
Version 1.2: 921012
COM-AND Remap Script Page 3
III. REMAP source files
REMAP expects an ASCII file as source for the compilation. ASCII
files are prepared by text editors (e.g. EDLIN). Word processors
usually do not emit ASCII files... if you wish to use a word pro-
cessor to prepare a source file for REMAP, be sure it gives you
ASCII output (often called non-document format).
[NOTE: The REMAP script allows you to invoke a text editor or word
processor from within the script itself. Modify the first line of
the script to declare the complete program name (e.g. C:\PE.EXE).
If you leave it blank, REMAP queries for a program name. The value
"INTERNAL" invokes COM-AND's internal editor.]
[NOTE: FileMgr.CMD defaults to COM-AND's INTERNAL editor in its
distributed form, and after a failure to load the editor you specify
(if you change the script. Please refer to the document CASCRIPT.
DOC for a discussion of this editor.]
Lines of source to REMAP.CMD must be limited in length to 80
characters. Source files contain three types of lines:
A. Comments
Comment lines are blank, or begin with ";" or "*". They are
ignored by the compiler.
B. Section names
The source file may (optionally) be divided into several sections
through the inclusion of "NAME = ..." command lines. REMAP scans
the file before compilation; if section names are found, a window
is opened and you are asked to select a section to compile.
C. Redefinitions
All other lines of a source file are redefinitions. A redefin-
ition command declares a given key is redefined as another key
or keys. For example:
A = B ; redefines the 'A' key as 'B'
0x1a = AltX ; Redefines control-z (0x1a) as Alt-X
0x80 = F2 "remap.cmd!"
Version 1.2: 921012
COM-AND Remap Script Page 4
III. REMAP source files (continued)
C. Redefinitions (continued)
The last example requires some explanation... 0x80 is 80 hex.
to get an 80 hex using the keyboard, press and hold the ALT key
while typing 1 2 8 on the numeric pad (128 decimal is 80 hex).
The last example declares that when you type 80 hex (alt-1-2-8),
COM-AND sees F2, then the string "remap.cmd" then a carriage
return (the "!" at the end is a carriage return).
You may declare a string using the usual conventions for macro
strings or m